<link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css">
	<link href="__PUBLIC__/bootstrap/css/bootstrap.datepicker/bootstrap-datepicker3.min.css" rel="stylesheet" />
	<script src="__PUBLIC__/bootstrap/js/jquery.min.js"></script>
	<script src="__PUBLIC__/bootstrap/js/bootstrap/bootstrap.min.js"></script>
	 <script src="__PUBLIC__/bootstrap/js/bootstrap.datepicker/js/bootstrap-datepicker.min.js"></script>
    <script src="__PUBLIC__/bootstrap/js/bootstrap.datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<div class='content-fuild' style="margin:20px">
<a class="btn btn-primary"  href="{:U('Depart/Abnormal/index')}">返回</a> 
<a class="btn btn-primary"  href="{:U('Depart/Abnormal/items',array('id'=>$header[0]["aid"]))}">不合格内容</a> 

<table class="table   table-bordered">
<input class="input-control">
<caption style="text-align: center">NCR报告</caption>
	<thead style="text-align: center">
		<tr>
			<th>NCR编号</th>
			<th>{$header[0]['sn']}</th>
			<th>签发日期</th>
			<th>{$header[0]['sign']|date='Y.m.d',###}</th>
		</tr>
		<tr>
			<th>责任部门</th>
			<th>{$header[0]['depart']}</th>
			<th>签发人</th>
			<th>{$header[0]['signer']}</th>
		</tr>
	</thead>
	<tbody>
		<tr><td colspan='4'>不合格内容</td></tr>
		<tr>
			<td colspan='4'>
				<foreach name='items' item='v'>
				 <h4>{++$i}.{$v.abtype}<a class="btn btn-default"  href="{:U('Depart/Abnormal/reason',array('adid'=>$v['adid']))}">原因分析及处理</a></h4>
				 {$v.content}<br />
			  	</foreach>
			</td>
		</tr>

		<tr><td colspan='4'>原因分析</td></tr>
			<td colspan='4'>
				<foreach name='items' item='v'>
				 <h4>{++$j}.{$v.reasontype}<a class="btn btn-default"  href="{:U('Depart/Abnormal/method',array('adid'=>$v['adid']))}">处理措施</a></h4>
				 {$v.reason}<br />
			  	</foreach>
			</td>
		<tr><td colspan='4'>处理措施</td></tr>
			<td colspan='4'>
				<foreach name='items' item='v'>
					 {++$k}.{$v.method}<br />
			  	</foreach>
			</td>
	</tbody>
</table>
</div>